package com.sk.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 配置文件通用类
 * @Author jiaok
 * @Date 2023-12-05 10:44
 */
@Getter
@Setter
@Data
public class ApplicationEntity {


    @ApiModelProperty("项目端口")
    private Integer proPort;

    @NotBlank(message = "项目名不能为空")
    @ApiModelProperty("项目名")
    private String name;

    /**
     * 路径以及数据库名称，要保持一致
     */
    @NotNull(message = "项目路径不能为空")
    @ApiModelProperty("项目路径")
    private String path;


    @ApiModelProperty("数据库名称")
    private String databaseName;

    @ApiModelProperty("数据库ip")
    private String databaseIp = "127.0.0.1";

    @ApiModelProperty("数据库端口")
    private String databasePort = "3306";

    @ApiModelProperty("数据库用户")
    private String databaseUsername = "root";

    @ApiModelProperty("数据库密码")
    private String databasePassword = "root";

    @ApiModelProperty("redis地址")
    private String redisIp ="127.0.0.1";

    @ApiModelProperty("redis端口")
    private Integer redisPort = 6379;

    @ApiModelProperty("redis密码")
    private String redisPassword;

    @ApiModelProperty("算法直播url")
    private String liveUrl = "predict";

    @ApiModelProperty("算法")
    private String aiUrl = "predict";

    @ApiModelProperty("nginx图片存储路径")
    private String nginxPicturePath;

    @ApiModelProperty("nginx视频存储路径")
    private String nginxVideoPath;

    @ApiModelProperty("文件导出路径")
    private String  exportPath;


}
